<template>
  <!-- 详情页组件：商品轮播图 -->
  <swiper class="detail-swiper">
    <swiper-item v-for="item in topImages" :key="item">
      <img :src="item" alt="">
    </swiper-item>
  </swiper>
</template>

<script>
import { swiper, swiperItem } from 'components/common/swiper'

export default {
  name: "detail_swiper",
  components: {
    swiper,
    swiperItem
  },
  props: {
    topImages: {
      type: Array,
      default() {
        return []
      }
    }
  }
}
</script>

<style scoped>
  .detail-swiper {
    height: 300px;
    overflow: hidden;
  }
</style>